this.BX=this.BX||{};(function(t,e){"use strict";var i,l;function a(t,e){s(t,e);e.add(t)}function s(t,e){if(e.has(t)){throw new TypeError("Cannot initialize the same private elements twice on an object")}}function n(t,e,i){if(!e.has(t)){throw new TypeError("attempted to get private field on non-instance")}return i}var o=new WeakSet;var r=function(){function t(i){babelHelpers.classCallCheck(this,t);a(this,o);this.target=e.Type.isDomNode(i.target)?i.target:null;this.type=e.Type.isString(i.type)?i.type:null;this.size=e.Type.isString(i.size)?i.size:null;this.color=i.color?i.color:null;this.layout={container:null,bulletContainer:null}}babelHelpers.createClass(t,[{key:"bulletLoader",value:function t(){var l=this.color?"background: ".concat(this.color,";"):"";if(!this.layout.bulletContainer){this.layout.bulletContainer=e.Tag.render(i||(i=babelHelpers.taggedTemplateLiteral(['\n\t\t\t\t<div class="ui-loader__bullet">\n\t\t\t\t\t<div style="','" class="ui-loader__bullet_item"></div>\n\t\t\t\t\t<div style="','" class="ui-loader__bullet_item"></div>\n\t\t\t\t\t<div style="','" class="ui-loader__bullet_item"></div>\n\t\t\t\t\t<div style="','" class="ui-loader__bullet_item"></div>\n\t\t\t\t\t<div style="','" class="ui-loader__bullet_item"></div>\n\t\t\t\t</div>\n\t\t\t'])),l,l,l,l,l)}this.layout.container=document.querySelector(".ui-loader__bullet");return this.layout.bulletContainer}},{key:"show",value:function t(){this.layout.container.style.display="block"}},{key:"hide",value:function t(){this.layout.container.style.display=""}},{key:"render",value:function t(){if(!e.Type.isDomNode(this.target)){console.warn("BX.LiveChatRestClient: your auth-token has expired, send query with a new token");return}else{e.Dom.append(n(this,o,u).call(this),this.target);if(this.type==="BULLET"){if(this.size){if(this.size.toUpperCase()==="XS"){e.Dom.addClass(this.layout.container,"ui-loader__bullet--xs")}if(this.size.toUpperCase()==="S"){e.Dom.addClass(this.layout.container,"ui-loader__bullet--sm")}if(this.size.toUpperCase()==="M"){e.Dom.addClass(this.layout.container,"ui-loader__bullet--md")}if(this.size.toUpperCase()==="L"){e.Dom.addClass(this.layout.container,"ui-loader__bullet--lg")}if(this.size.toUpperCase()==="XL"){e.Dom.addClass(this.layout.container,"ui-loader__bullet--xl")}}}}}}]);return t}();function u(){if(!this.layout.container){this.layout.container=e.Tag.render(l||(l=babelHelpers.taggedTemplateLiteral(['\n\t\t\t\t<div class="ui-loader__container ui-loader__scope">\n\t\t\t\t\t',"\n\t\t\t\t</div>\n\t\t\t"])),this.type==="BULLET"?this.bulletLoader():"")}return this.layout.container}t.Loader=r})(this.BX.UI=this.BX.UI||{},BX);
//# sourceMappingURL=loader.bundle.map.js